import { authedApi } from '../utils/axios'

//创建数据集上传文件
export function uploadFileApi(params={}) {
    return authedApi.post('v2/minio_uploads/', params, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    });
}
export function getDatatypeListApi(params={}) {
    return authedApi.get('/datatypes/', params)
}

export function getDatalabelListApi(params={}) {
  return authedApi.get('/labeltypes/', params)
}

export function getDatatypeDetailApi(type) {
    return authedApi.get(`/datatypes/${type}/`)
}
